<?php
/**
 * @Copyright Copyright (C) 2010-2012
 * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
 + Created by:          Webit Solution
 * Company:		Webit Solution
 + Contact:		www.webitsolution.com , developer@webitsolution.com
 * Created on:	May 30, 2009
 ^
 + Project: 		WRecruit
 * File Name:	admin-----/tables/candidate.php
 ^ 
 * Description: Table for a candidate
 ^ 
 * History:		NONE
 ^ 
 */
 
defined('_JEXEC') or die('Restricted access');

class TableCandidate extends JTable
{

/** @var int Primary key */
	var $id=null;
	var $uid=null;	
	var $firstname=null;
	var $lastname=null;	
	var $phone=null;
	var $education=null;
	var $industry=null;
	var $address=null;
	var $country=null;
	var $city=null;
	var $state=null;
	var $subscribed=null;
	var $privacy=null;
	var $photo = null;
	var $is_vacancy_interest = 0;
	var $vacancy_interest_position = null;
	var $vacancy_interest_salary = null;
	var $vacancy_interest_field = null;
	
	function __construct(&$db)
	{
		parent::__construct( '#__wrecruit_candidates', 'id' , $db );
	}
	
	/** 
	 * Validation
	 * 
	 * @return boolean True if buffer is valid
	 * 
	 */
	 function check()
	 {
/*	    if (trim( $this->name ) == '') {
	      $this->_error = "Name cannot be empty.";
	      return false;
	    }else if (trim( $this->description ) == '') {
	      $this->_error = "Description cannot be empty.";
	      return false;
	    }
*/
		return true;
	 }
	 	 
}

?>
